<%-- 
    Document   : list
    Created on : 2014/8/11, 下午 04:53:19
    Author     : Yu
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%

	    java.util.ArrayList list
		    = (java.util.ArrayList) session.getAttribute("list");
	%>


<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
	<table border="1">
	    <tr><td>產品</td><td>數量</td><td>價格</td></tr>
	   
	<%
	for(int i=0; i<list.size();i++){
	    java.util.HashMap<String,String>data
		    =(java.util.HashMap<String,String>)list.get(i);
	    %>
    <tr><td><%=data.get("pname") %></td>
	<td><%=data.get("num") %></td>
	<td><%=data.get("price") %></td>
	    
	
    </tr>
	    
	    <%
	    
	}
	   
	
	%>
	</table>
    </body>
</html>
